<?php
namespace app\validate;

use share\validate\SceneValidate;

class OtherClientTableValidate extends SceneValidate{

    protected $rule = [
        'appId' =>  'require',     
        'appSecret' => 'require|length:1,60',
        'clientType' => 'require|integer',
        'message'=> 'require|length:1,500',
    ];  
    
    protected $sceneRules = [   
        'edit' => [       
            'appId' => 'require|length:1,60',
            'appSecret' => 'length:1,60',
            'clientType' => 'integer',
            'message'=> 'length:1,500',
        ]
    ];

    protected $scene = [
        'add' => ['appId','appSecret','clientType','appSecret','message'],  
        'edit' => ['appId','appSecret','clientType','appSecret','message'],      
        'del' => ['appId'],
    ];
}